package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.ComplaintsErrorRecords;
import com.ytjj.qmyx.mall.model.ComplaintsErrorRecordsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ComplaintsErrorRecordsMapper {
    long countByExample(ComplaintsErrorRecordsExample example);

    int deleteByExample(ComplaintsErrorRecordsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ComplaintsErrorRecords record);

    int insertSelective(ComplaintsErrorRecords record);

    List<ComplaintsErrorRecords> selectByExample(ComplaintsErrorRecordsExample example);

    ComplaintsErrorRecords selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ComplaintsErrorRecords record, @Param("example") ComplaintsErrorRecordsExample example);

    int updateByExample(@Param("record") ComplaintsErrorRecords record, @Param("example") ComplaintsErrorRecordsExample example);

    int updateByPrimaryKeySelective(ComplaintsErrorRecords record);

    int updateByPrimaryKey(ComplaintsErrorRecords record);

    /**
     * 查询所有未重新回复的投诉记录
     */
    List<ComplaintsErrorRecords> queryByStatus(@Param("status") Integer status);

    /**
     * 修改错误记录状态
     */
    Integer updateStatus(@Param("complaintId") String  complaintId);
}